<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>123</title>
        <style>
            [title~=hello]{
                color: blue;
            }
        </style>
    </head>
    <body>
        <h2>将适用于:</h2>
        <h1 title="hello world">Hello</h1>
        <p title="java hello">java</p>
        <hr>
        <h2>不适用</h2>
        <p class="student">luck</p>
    </body>
</html>